﻿using System.Data.Entity;
using Domain.Entities;

namespace ClassLibrary1
{
    public class MyHealthDbContext : DbContext
    {

        public MyHealthDbContext()
        {
            if (!Database.Exists())
            {
                Database.Create();
            }
        }
        public DbSet<Bill> Bills { get; set; }
        public DbSet<BillStatus> BillStatus { get; set; }
        public DbSet<Example> Examples { get; set; }
        public DbSet<HealthCareEntity> HealthCareEntities { get; set; }
        public DbSet<HealthCareEntityType> HealthCareEntityTypes { get; set; }
        public DbSet<OrderLine> OrderLines { get; set; }
        public DbSet<MhUser> Users { get; set; }
    }
}